home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / penguinpass.swf / scripts / frame_36 / DoAction.as
Text File  |  2008-03-17  |  936b  |  48 lines

  1. _root.penguin.gotoAndStop(1);
  2. _root.lives -= 1;
  3. if(_root.lives == 0)
  4. {
  5.    _root.gotoAndPlay(53);
  6. }
  7. i = 1;
  8. while(i <= 20)
  9. {
  10.    if(_root["pos" + i].u1 == 1)
  11.    {
  12.       _root["pos" + i].b0.gotoAndPlay(3);
  13.    }
  14.    if(_root["pos" + i].u2 == 1)
  15.    {
  16.       _root["pos" + i].b1.gotoAndPlay(3);
  17.    }
  18.    if(_root["pos" + i].u3 == 1)
  19.    {
  20.       _root["pos" + i].b2.gotoAndPlay(3);
  21.    }
  22.    if(_root["pos" + i].u4 == 1)
  23.    {
  24.       _root["pos" + i].b3.gotoAndPlay(3);
  25.    }
  26.    if(_root["pos" + i].u5 == 1)
  27.    {
  28.       _root["pos" + i].b4.gotoAndPlay(3);
  29.    }
  30.    if(_root["pos" + i].u6 == 1)
  31.    {
  32.       _root["pos" + i].b5.gotoAndPlay(3);
  33.    }
  34.    if(_root["pos" + i].u7 == 1)
  35.    {
  36.       _root["pos" + i].b6.gotoAndPlay(3);
  37.    }
  38.    if(_root["pos" + i].u8 == 1)
  39.    {
  40.       _root["pos" + i].b7.gotoAndPlay(3);
  41.    }
  42.    if(_root["pos" + i].u9 == 1)
  43.    {
  44.       _root["pos" + i].b8.gotoAndPlay(3);
  45.    }
  46.    i++;
  47. }
  48.